import { VantComponent } from '../../vant/common/component';
VantComponent({
  props: {
    src: {
      type: String,
      value: '',
    },
    classname: {
      type: String,
      value: '',
    },
    mode: {
      type: String,
      value: 'aspectFill',
    },
  },
  data: {
    url: '',
  },
  watch: {
    src(newVal = '') {
      const url = newVal.replace('-sign', '');
      this.setData({
        url,
      });
    },
  },
});
